Writing DataWeave Transformations


Quiz

Oh no! You got 1 / 5. Please review your answers.

  1. Refer to the exhibit. An event payload contains an unordered array of flight objects, where every object has a price key and a toAirport key. 

    What is valid DataWeave code to return flights with price under 500, grouped by toAirport in ascending order, with the lowest price first?

    Correct!
  2. Refer to the exhibit. What is valid DataWeave code to transform the input JSON payload to the output XML payload?

    Answers

    A.

    B.

    C.

    D.

    Sorry, that's incorrect.
  3. A Mule application has a main flow and a combineNames flow. In the main flow, a variable named fullName is set to the object {firstName: "Max", lastName: "Mule"}.

    What is valid DataWeave code to call the combineNames flow with the input object stored in the fullName variable?

    Sorry, that's incorrect.
  4. What DataWeave 2.0 type can be used as input to a map operation?

    Sorry, that's incorrect.
  5. What is the correct way to format the decimal 20.3844 as a string to two decimal places?

    Sorry, that's incorrect.

How well do you think you understood 'Module 11' ?

Oh no! You got 1 / 5. Please scroll up to review your answers.

This Attempt

20%Overall Score
N/AConfidence Score
Unable to retrieve grouped courses.